﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="userratepoints_list.aspx.cs" Inherits="MxWeiXinPF.Web.shop.userratepoints_list" %>
<%@ Import Namespace="MxWeiXinPF.Common" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>我的积分</title>
    <meta charset="UTF-8">
    <meta name="viewport" content=" initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link  href="../admin/css/pagination.css" rel="stylesheet" type="text/css" />
    <link href="../admin/skin/default/style.css" rel="stylesheet" type="text/css" />
            <link href="/shop/templates/default/css/style.css" rel="stylesheet" />
    <link href="/shop/templates/default/css/templates.css" rel="stylesheet" />
</head>
<body bgcolor="#F2F2F2">
    <form id="form1" runat="server" class="demoform">
      <input type="hidden" id="hidwid" name="hidwid">
      <input type="hidden" id="openid" name="openid">
    <!--   <div class="lay_header" style="height: 45px">
        <div class="lay_toptab mod_tab" id="lay_head">
            <a class="tab_item" href="<%=indexurl %>"><i class="qb_icon icon_goback"></i></a>
            <a class="tab_item tab_item_logo" href="{$indexurl}">
            <img src="{$shopconfig.logo}" />
        </a>
            <a class="tab_item" href="<%=userinfourl %>"><i class="qb_icon icon_icenter"></i>
            </a><a class="tab_item" href="<%=carturl %>"><i class="qb_icon icon_cart"></i></a>
        </div>
        <div class="lay_toptab mod_tab fixed qb_none" id="lay_head_fixed">
            <a class="tab_item" href="<%=indexurl %>"><i class="qb_icon icon_goback"></i></a>
            <!--<a class="tab_item tab_item_logo" href="{$indexurl}">
           <img src="{$shopconfig.logo}" style="width: 132px; margin-top: 8px;" />
        </a>
            <a class="tab_item" href="<%=userinfourl %>"><i class="qb_icon icon_icenter"></i>
            </a><a class="tab_item" href="<%=carturl %>"><i class="qb_icon icon_cart"></i></a>
        </div>
    </div>
-->
       <div class="location">
        <a href="userInfo.aspx?wid=<%=wid %>&openid=<%=openid %>" class="back"><i></i><span>返回个人中心</span></a><i class="arrow"></i><span>积分兑换列表</span>
    </div>

      <div class="toolbar-wrap">
        <div id="floatHead" class="toolbar">
            <div class="l-list">
                <ul class="icon-list">
                    <li><a class="add" href="userratepoints.aspx?action=<%=MXEnums.ActionEnum.Add %>&wid=<%=wid %>&openid=<%=openid %>&shopid=<%=shopid %>"><i></i>
                        <span>新增</span></a></li>
                    <li><a class="all" href="javascript:;" onclick="checkAll(this);"><i></i><span>全选</span></a></li>
                    <li>
                        <asp:LinkButton ID="btnDelete" runat="server" CssClass="del" OnClientClick="return ExePostBack('btnDelete','本操作会删除此兑换请求，是否继续？');"
                            OnClick="btnDelete_Click"><i></i><span>删除</span></asp:LinkButton></li>
                </ul>
            </div>
            <div class="r-list">
                <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword" />
            </div>
        </div>
    </div>

 <asp:Repeater ID="rptList" runat="server" onitemcommand="rptList_ItemCommand">
        <HeaderTemplate>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
                <tr>
                    <th width="8%">
                        选择
                    </th>
                    <th align="left">
                        兑换信息：
                    </th >                   
                    <th align="left">
                        状态：
                    </th>                        
                    <th>
                        操作
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td align="center">
                    <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" /><asp:HiddenField ID="hidId"
                        Value='<%#Eval("id")%>' runat="server" />
                </td>
                <td>
                    <div class="user-box">        
                    <i>店铺名称：<%#Eval("shopname")%></i><br />
                    <i>兑换积分：<%# JifenConvert(Eval("amount").ToString())%></i><br />
                    <i>兑 换 码：<%#Eval("confirmcode")%></i><br /><i>兑换时间：<%#string.Format("{0:g}",Eval("createtime"))%></i><br /></div>
                </td>
                <td align="left">
                    <%#Eval("status").ToString() == "1" ? "已兑换" : "未兑换"%>
                </td>             
                <td align="center">
                    <asp:LinkButton ID="lkbDel" runat="server" CssClass="del" CommandArgument='<%#Eval("id") %>' OnClientClick="return confirm('是否删除')" CommandName="Del"  >删除</asp:LinkButton>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"9\">暂无记录</td></tr>" : ""%>
            </table>
        </FooterTemplate>
    </asp:Repeater>

    
<div class="line20"></div>
<div class="pagelist">
  <div class="l-btns">
    <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" ontextchanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
  </div>
  <div id="PageContent" runat="server" class="default"></div>
</div>
<!--/内容底部-->
   <%-- <div class="qb_quick_tip qb_none" id="bubble"></div>--%>
    <script src="/shop/templates/default/js/zepto.min.js"></script>
    <!--_share_js-->
    <vt:template id="share_js" file="_share_js.html" charset="utf-8" />

    <div class="lay_footer qb_tac qb_fs_s mod_mb15">
        <div id="footer">
            <div class="positionFooter">
                <ul>
                    <li><a class="a1" href="<%=indexurl %>">首页</a></li>
                    <li><a class="a2" href="<%=categoryurl %>">药品分类</a></li>
                    <li><a class="a3" href="<%=carturl %>">购物车</a></li>
                    <li><a class="a4" href="<%=userinfourl %>">会员中心</a></li>
                </ul>
            </div>
        </div>
<%--        <div class="fn_copyright qb_bfc">
            <div class="mod_color_comment bfc_c">&copy;&nbsp; 易药宝</div>
        </div>--%>
    </div>
    </form>
</body>
</html>
